-- GENERATED SPELL FOR [Borelgore] --


function spell0_11896(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_11896', 555, 1)
end

function spell1_11896(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(6917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11896', 12500, 1)
end

function Sorts_11896(pUnit, Event)
local choix_sorts_11896 = math.random(0, 1)
if choix_sorts_11896 == 0 then
pUnit:RegisterEvent('spell0_11896', 1, 1)
end
if choix_sorts_11896 == 1 then
pUnit:RegisterEvent('spell1_11896', 1, 1)
end
end

function mob11896_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11896', math.random(1500, 3000), 1)
end

function mob11896_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11896_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11896_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11896, 1, 'mob11896_Action')
RegisterUnitEvent(11896, 2, 'mob11896_Leave')
RegisterUnitEvent(11896, 3, 'mob11896_Kill')
RegisterUnitEvent(11896, 4, 'mob11896_Die')
